import request from '@/utils/request'

// 验证码
export function captcha() {
  return request({
    url: '/manager/captcha',
    params: { key: '99C6390B12131B388D0487931694144448849' },
    responseType: 'blob'
  })
}

// 登录
export function login(data) {
  return request({
    url: '/manager/login',
    method: 'post',
    data
  })
}

// 查询用户可用的所有菜单
export function menu() {
  return request({
    url: '/manager/menus'
  })
}

// 工作台数据
export function workspace() {
  return request({
    url: '/manager/workspace'
  })
}

// 运输任务数据
export function managerPage() {
  return request({
    url: '/manager/transport-task-manager/page'
  })
}
